// /administrators/page.tsx
'use client';

import { useEffect } from 'react';
import { useRouter } from 'next/navigation';

// 封装错误处理函数
const handleError = (error, messageText) => {
    console.error(messageText, error);
    if (error.response && error.response.status === 403) {
        message.error('无权限操作');
    } else {
        message.error('网络请求失败，请检查网络连接');
    }
};

export default function AdminHomeRedirect() {
  const router = useRouter();

  useEffect(() => {
    router.replace('/administrators/users');
  }, [router]);

  return null;
}
